package com.yiyang.controller;

import com.yiyang.domain.ResultPage;
import com.yiyang.domain.po.NurseContent;
import com.yiyang.service.NurseContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nurseContents")
public class NurseContentController {

    @Autowired
    private NurseContentService nurseContentService;

    @GetMapping("/findNurseItemPage")
    public ResultPage<NurseContent> findNurseItemPage(@RequestParam(defaultValue = "1") Integer page,
                                                      @RequestParam(defaultValue = "5") Integer pageSize,String itemName,Integer status){
        ResultPage<NurseContent> nurseContentResultPage = nurseContentService.findNurseItemPage(page,pageSize,itemName,status);
        return nurseContentResultPage;
    }












}
